﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LDSP.BRL;

namespace LDSP.UI.EnterpriseAdmin
{
    public partial class UploadLogo : BRL.BaseEnterpriseAdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_upload_Click(object sender, EventArgs e)
        {
            string fileName = this.fup_file.FileName;
            string fileExtension = fileName.Substring(fileName.LastIndexOf('.'), fileName.Length - fileName.LastIndexOf('.'));
            string serverPath = System.Web.HttpContext.Current.Request.MapPath("~/LogoFiles/" + this.LoginUser.EnterpriseID + ".gif");
            this.fup_file.SaveAs(serverPath);
        }
    }
}